export default defineAppConfig({
    pages: [
        'pages/home/index', // 首页
        'pages/record/index', // 康复数据
        'pages/login/index', // 登录
        'pages/me/index', // 我的
        'pages/rehab/index', // 康复训练
        'pages/guide/index', // 医生指导
    ],
    subpackages: [
        {
            root: 'subPages',
            pages: [
                'rehabProgress/index', // 康复进程
                'rehabComplete/index', // 康复训练完成
                'todayRecord/index', // 今日运动记录
                'rehabDetail/index', // 康复训练详情
                'rehabTraining/index', // 进行康复训练
            ],
        },
    ],
    preloadRule: {
        'pages/rehab/index': {
            network: 'all',
            packages: ['subPages'],
        },
    },
    window: {
        backgroundColor: '#f5f5f5',
        backgroundTextStyle: 'light',
        navigationBarBackgroundColor: '#fff',
        navigationBarTitleText: 'WeChat',
        navigationBarTextStyle: 'black',
    },
    tabBar: {
        custom: true,
        color: '#000000',
        selectedColor: '#2F3E75',
        backgroundColor: '#ffffff',
        list: [
            {
                pagePath: 'pages/rehab/index',
                selectedIconPath: 'static/tabbar-icons/dumbbell-sel.png',
                iconPath: 'static/tabbar-icons/dumbbell.png',
                text: '',
            },
            {
                pagePath: 'pages/record/index',
                selectedIconPath: 'static/tabbar-icons/calendar-small-sel.png',
                iconPath: 'static/tabbar-icons/calendar-small.png',
                text: '',
            },
            {
                pagePath: 'pages/home/index',
                selectedIconPath: 'static/tabbar-icons/home-sel.png',
                iconPath: 'static/tabbar-icons/home.png',
                text: '',
            },
            {
                pagePath: 'pages/guide/index',
                selectedIconPath: 'static/tabbar-icons/medicine-symbol-sel.png',
                iconPath: 'static/tabbar-icons/medicine-symbol.png',
                text: '',
            },
            {
                pagePath: 'pages/me/index',
                selectedIconPath: 'static/tabbar-icons/user-sel.png',
                iconPath: 'static/tabbar-icons/user.png',
                text: '',
            },
        ],
    },
})
